dta_admin/module
	dta_xml
		name = "XML"
		refreshWindow(mob/M)
			. = {"
			<html>
				<head>
					<style type="text/css">
						body {
							font-family: verdana;
							font-size: 12px;
						}
						a { color: #0000FF; font-size: 12px; text-decoration: none; }
						a:hover { text-decoration: underline; }
						th { text-align: left; border-bottom: 1px solid #000000; }
						th,td { padding: 0px 8px; }
						td, td a { font-size: 10px; }
					</style>
				</head>
				<body>
				<table cellspacing="0">
					<thead>
						<th>Element</th>
						<th>XML</th>
					</thead>
					<tbody>"}
			for(var/XML/Element/e)
				if(!e) return
				. += {"
				<tr>
					<td>[e.Tag()]</td>
					<td>[e.String(TRUE)]</td>
				</tr>
				"}
				. += "</table><br /><a href=\"byond://?src=\ref[src];cmd=refresh\">(Refresh)</a></body></html>"
				M << output(., "[skinid].browser")